@import "header.html"
<link rel="stylesheet" href="../css/comment_detail.css">
<body>
<header class="fxj-header">
    <back></back>
    <h1 class="fxj-title">点评详细</h1>
</header>
<main id="main">
    <div v-show="orderId" class="header" onclick="goPage('indent_detail.html?indentId='+vm.orderId+'&role=fd');">
        <img v-if="info.houseInfo.img" :src="fixImgUrl(info.houseInfo.img)" alt="">
        <div class="container-info">
            <div class="title" v-cloak>{{info.houseInfo.title}}</div>
            <div class="date tips" v-cloak>{{info.start_date}}-{{info.end_date}}<span>共{{info.dayTotal}}晚</span></div>
        </div>
    </div>

    <div class="landlord" v-if="info.landlord&&info.landlord.recomment" v-cloak>
        <img v-if="info.landlord.info.photo" :src="fixImgUrl(info.landlord.info.photo)" class="avatar">
        <div class="comment-container">
            <div class="landlord-name" v-cloak>{{info.landlord.info.nickname}}</div>
            <div class="landlord-comment" v-cloak>{{info.landlord.recomment.content}}</div>
            <div class="comment-date tips" v-cloak>{{info.landlord.recomment.date}}</div>
        </div>
    </div>

    <div class="landlord" v-if="info.tenant&&info.tenant.recomment" v-cloak>
        <img v-if="info.tenant.info.photo" :src="fixImgUrl(info.tenant.info.photo)" alt="" class="avatar">
        <div class="comment-container">
            <div class="landlord-name user-name" v-cloak>{{info.tenant.info.nickname}}</div>
            <div class="grade-line">
                <div class="grade">
                    <span>描述相符</span>
                    <span v-cloak>{{info.tenant.recomment.description_match_star}}分</span>
                </div>
                <div class="grade">
                    <span>服务态度</span>
                    <span v-cloak>{{info.tenant.recomment.service_star}}分</span>
                </div>
            </div>
            <div class="grade-line">
                <div class="grade">
                    <span>环境卫生</span>
                    <span v-cloak>{{info.tenant.recomment.environment_star}}分</span>
                </div>
                <div class="grade">
                    <span>交通位置</span>
                    <span v-cloak>{{info.tenant.recomment.location_star}}分</span>
                </div>
            </div>
            <div class="grade-line">
                <div class="grade">
                    <span>性价比</span>
                    <span v-cloak>{{info.tenant.recomment.cost_performance_star}}分</span>
                </div>
                <div class="grade">
                    <span>推荐指数</span>
                    <span v-cloak>{{info.tenant.recomment.recommend_star}}分</span>
                </div>
            </div>
            <div class="landlord-comment" v-cloak>{{info.tenant.recomment.content}}</div>
            <div class="img-group">
                <div v-for="img of info.tenant.recomment.imgs"><img :src="fixImgUrl(img.surl)" alt="" class="img"></div>
            </div>
            <div class="footer">
                <div class="comment-date tips" v-cloak>{{info.tenant.recomment.date}}</div>
            </div>
        </div>
    </div>

    <div class="no-comment tips" v-if="write">您还没有点评</div>
    <div class="container-btn" v-if="write">
        <div class="now-comment" @click="nowComment">立即点评</div>
    </div>
</main>

@import "js.html"
<script src="../script/comment_detail.js"></script>
</body>
@import "footer.html"